package com.wrater.zero.models.checkReportTemplate.entity;

import com.wrater.zero.common.base.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import javax.persistence.Column;
import org.springframework.beans.BeanUtils;
import com.wrater.zero.models.checkReportTemplate.vo.CheckReportTemplateVO;

/**
 * @Package: com.wrater.zero.models.checkReportTemplate.entity
 * @Description: <检查化验报告模板实体>
 * @Author: qiaoxs
 * @CreateDate: 2021-04-07
 * @UpdateUser: qiaoxs
 * @UpdateDate: 2021-04-07
 * @UpdateRemark: <>
 * @Version: 1.0
 */
@Data
@TableName("check_report_template")
public class CheckReportTemplate extends BaseEntity<CheckReportTemplate, CheckReportTemplateVO> {

private static final long serialVersionUID = 5824505524608300560L;

    /**
     * 报告主键
     */
    @TableId("report_id")
    @Column(name = "report_id")
    private String reportId;

    /**
     * 分类主键
     */
    @Column(name = "check_type_id")
    private String checkTypeId;

    /**
     * 报告名称
     */
    @Column(name = "report_name")
    private String reportName;

    /**
     * 报告标题
     */
    @Column(name = "report_title")
    private String reportTitle;

    /**
     * 报告代号
     */
    @Column(name = "report_code")
    private String reportCode;

    /**
     * 标本类型
     */
    @Column(name = "specimen_type")
    private String specimenType;

    /**
     * 报告说明
     */
    @Column(name = "report_explain")
    private String reportExplain;

    /**
     * 返回实体对应vo类
     * @return
     */
    @Override
    public CheckReportTemplateVO buildVo() {
        CheckReportTemplateVO vo = new CheckReportTemplateVO();
        BeanUtils.copyProperties(this, vo);
        return vo;
    }
}